﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ConsultativeDigg.aspx.cs"
    Inherits="Admin_Consultative_ConsultativeDigg" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>资讯信息排行</title>
<link rel="stylesheet" href="../skin/style.css" type="text/css" />
<script type="text/javascript" src="../../js/jquery.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="itemtitle">
            <h3>
                资讯搜索</h3>
        </div>
        <div class="itemtitle_tect">
            <p>
                关键字：
                <asp:TextBox ID="txtKeyWord" runat="server"></asp:TextBox>
                所属分类：
                <asp:DropDownList ID="dropType" runat="server">
                </asp:DropDownList>
                <asp:Button ID="btnsubmit" runat="server" Text="立即查询" OnClick="btnsubmit_Click" CssClass="i_button" /></p>
        </div>
        <div class="clr">
        </div>
        <div class="talbe_border">
            <asp:GridView ID="grdConsultative" runat="server" CellPadding="0" DataKeyNames="ID"
                Font-Overline="False" GridLines="None" CssClass="talbe_list" AutoGenerateColumns="False" OnRowDataBound="grdConsultative_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderText="资讯标题">
                        <ItemTemplate>
                            <%# GetNewTitle(DataBinder.Eval(Container.DataItem, "Title").ToString(),Eval("ID").ToString(), DataBinder.Eval(Container.DataItem, "IsTop").ToString(), DataBinder.Eval(Container.DataItem, "IsRecommend").ToString(), DataBinder.Eval(Container.DataItem, "IsHotspot").ToString(), DataBinder.Eval(Container.DataItem, "Picture").ToString())%>
                        </ItemTemplate>
                        <ItemStyle CssClass="left2" />
                    </asp:TemplateField>
                   <asp:TemplateField HeaderText="所属类别">
                        <ItemTemplate>
                            <a style="text-decoration: none" href='ConsultativeDigg.aspx?TypeID=<%# DataBinder.Eval(Container.DataItem,"TypeID") %>'>
                                <%# DataBinder.Eval(Container.DataItem, "Name") %>
                            </a>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th80" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="AddDate" HeaderText="发布日期">
                        <HeaderStyle CssClass="th80" />
                    </asp:BoundField>
                    <asp:BoundField DataField="CountUp" HeaderText="顶">
                        <HeaderStyle CssClass="th30" />
                    </asp:BoundField>
                    <asp:BoundField DataField="CountDown" HeaderText="踩">
                        <HeaderStyle CssClass="th30" />
                    </asp:BoundField>
                </Columns>
                <HeaderStyle CssClass="header" />
            </asp:GridView>
            <div class="Paging">
                <p>
                    总记录数：<asp:Label ID="txt_pageCount" runat="server"></asp:Label>
                    页码：<asp:Label ID="txt_begin" runat="server"></asp:Label>/<asp:Label ID="txt_pageAll"
                        runat="server"></asp:Label>
                    <asp:LinkButton ID="btn_pageFirst" runat="server" OnClick="btn_pageFirst_Click">首页</asp:LinkButton>
                    <asp:LinkButton ID="btn_pageLast" runat="server" OnClick="btn_pageLast_Click">上一页</asp:LinkButton>
                    <asp:LinkButton ID="btn_pageNext" runat="server" OnClick="btn_pageNext_Click">下一页</asp:LinkButton>
                    <asp:LinkButton ID="btn_pageFoot" runat="server" OnClick="btn_pageFoot_Click">末页</asp:LinkButton>
                    <asp:TextBox ID="txt_PageNum" runat="server" Width="30px"></asp:TextBox>
                    <asp:LinkButton ID="btn_go" runat="server" OnClick="btn_go_Click">GO</asp:LinkButton>
                </p>
            </div>
        </div>
    </form>
</body>
</html>
